package com.example.smartall.entity;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class NewsBean {

    /**
     * total : 51
     * rows : [{"searchValue":null,"createBy":"1","createTime":"2021-05-08 09:57:54","updateBy":"1","updateTime":"2022-01-10 14:44:49","remark":null,"params":{},"id":28,"appType":"smart_city","cover":"/prod-api/profile/upload/image/2021/05/08/c044462a-2ce3-4f28-b2a3-908164b82498.jpg","title":"iPhone 13再爆猛料：不止刘海屏有望缩小，超大杯或将搭载LTPO屏","subTitle":null,"content":"<p>\t按照去年iPhone 12系列的发布时间节点来看，如今距离苹果新一代iPhone发布的时间还有很长一段时间，但这并未能够阻挡消费者对于iPhone 13系列的关注热情。每当网上一有关于新机的爆料信息，总能引起了不少网友的围观与讨论<\/p><p><br><\/p><p>\t就在近日，国外一数码博主便通过一则视频，向广大网友展示疑似iPhone 13 Pro Max的机模。根据该视频显示，全新的iPhone 13 Pro Max在外观上并没有做出太大的改变，依旧保持了刘海屏设计，同时后置依旧采用了三摄模组。区别的是，相较于上一代iPhone 13 Pro Max似乎机身厚度变大了些许，且摄像头模组的凸起程度也更高，而且正面的刘海屏也能感觉到明显变窄了不少。<\/p><p><br><\/p><p><img src=\"/prod-api/profile/upload/image/2021/05/17/863b3306-9fad-4255-a065-0f59b57c7cc4.jpg\"><\/p><p>\t<\/p><p>      至于配置方面，iPhone 13 Pro Max有望搭载LTPO显示屏，借助于这一屏幕材质的特殊性，能够有效降低屏幕的功耗，iPhone 13 Pro Max大概率将会支持120Hz屏幕刷新率，从而拉开苹果手机的高刷屏序幕。此外，存储空间也或将升级至1TB内存。如果真的如此的话，那么对于广大果粉朋友来说，绝对算得上是近几年苹果带给用户最大的福音。<\/p><p><img src=\"/prod-api/profile/upload/image/2021/05/17/ec953328-80e2-457a-a18b-d61009a8e498.jpg\"><\/p>","status":"Y","publishDate":"2021-05-08","tags":null,"commentNum":831,"likeNum":589,"readNum":2134,"type":"22","top":"N","hot":"N"}]
     */

    private int total;
    /**
     * searchValue : null
     * createBy : 1
     * createTime : 2021-05-08 09:57:54
     * updateBy : 1
     * updateTime : 2022-01-10 14:44:49
     * remark : null
     * params : {}
     * id : 28
     * appType : smart_city
     * cover : /prod-api/profile/upload/image/2021/05/08/c044462a-2ce3-4f28-b2a3-908164b82498.jpg
     * title : iPhone 13再爆猛料：不止刘海屏有望缩小，超大杯或将搭载LTPO屏
     * subTitle : null
     * content : <p>	按照去年iPhone 12系列的发布时间节点来看，如今距离苹果新一代iPhone发布的时间还有很长一段时间，但这并未能够阻挡消费者对于iPhone 13系列的关注热情。每当网上一有关于新机的爆料信息，总能引起了不少网友的围观与讨论</p><p><br></p><p>	就在近日，国外一数码博主便通过一则视频，向广大网友展示疑似iPhone 13 Pro Max的机模。根据该视频显示，全新的iPhone 13 Pro Max在外观上并没有做出太大的改变，依旧保持了刘海屏设计，同时后置依旧采用了三摄模组。区别的是，相较于上一代iPhone 13 Pro Max似乎机身厚度变大了些许，且摄像头模组的凸起程度也更高，而且正面的刘海屏也能感觉到明显变窄了不少。</p><p><br></p><p><img src="/prod-api/profile/upload/image/2021/05/17/863b3306-9fad-4255-a065-0f59b57c7cc4.jpg"></p><p>	</p><p>      至于配置方面，iPhone 13 Pro Max有望搭载LTPO显示屏，借助于这一屏幕材质的特殊性，能够有效降低屏幕的功耗，iPhone 13 Pro Max大概率将会支持120Hz屏幕刷新率，从而拉开苹果手机的高刷屏序幕。此外，存储空间也或将升级至1TB内存。如果真的如此的话，那么对于广大果粉朋友来说，绝对算得上是近几年苹果带给用户最大的福音。</p><p><img src="/prod-api/profile/upload/image/2021/05/17/ec953328-80e2-457a-a18b-d61009a8e498.jpg"></p>
     * status : Y
     * publishDate : 2021-05-08
     * tags : null
     * commentNum : 831
     * likeNum : 589
     * readNum : 2134
     * type : 22
     * top : N
     * hot : N
     */

    private List<RowsBean> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean implements Comparable<RowsBean>, Serializable {
        private Object searchValue;
        private String createBy;
        private String createTime;
        private String updateBy;
        private String updateTime;
        private Object remark;
        private int id;
        private String appType;
        private String cover;
        private String title;
        private String subTitle;
        private String content;
        private String status;
        private String publishDate;
        private Object tags;
        private int commentNum;
        private int likeNum;
        private int readNum;
        private String type;
        private String top;
        private String hot;

        public Object getSearchValue() {
            return searchValue;
        }

        public void setSearchValue(Object searchValue) {
            this.searchValue = searchValue;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public Object getRemark() {
            return remark;
        }

        public void setRemark(Object remark) {
            this.remark = remark;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAppType() {
            return appType;
        }

        public void setAppType(String appType) {
            this.appType = appType;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getSubTitle() {
            return subTitle;
        }

        public void setSubTitle(String subTitle) {
            this.subTitle = subTitle;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getPublishDate() {
            return publishDate;
        }

        public void setPublishDate(String publishDate) {
            this.publishDate = publishDate;
        }

        public Object getTags() {
            return tags;
        }

        public void setTags(Object tags) {
            this.tags = tags;
        }

        public int getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public int getLikeNum() {
            return likeNum;
        }

        public void setLikeNum(int likeNum) {
            this.likeNum = likeNum;
        }

        public int getReadNum() {
            return readNum;
        }

        public void setReadNum(int readNum) {
            this.readNum = readNum;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTop() {
            return top;
        }

        public void setTop(String top) {
            this.top = top;
        }

        public String getHot() {
            return hot;
        }

        public void setHot(String hot) {
            this.hot = hot;
        }


        @Override
        public int compareTo(RowsBean rowsBean) {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
            Date date = null;
            Date date1 = null;
            try {
                date = simpleDateFormat.parse(this.publishDate);
                date1 = simpleDateFormat.parse(rowsBean.publishDate);
            } catch (ParseException e) {
                e.printStackTrace();
            }
            if (date.before(date1)){
                return 0;
            }
            return 1;
        }
    }
}
